package com.lzh.shijicloudstack.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lzh.shijicloudstack.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 菜谱表
 *
 * @author luzhiheng
 * @since 2024-12-28 16:14:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cookbook")
@Entity
@Table(name = "cookbook", indexes = {
        @Index(name = "name_idx", columnList = "name", unique = false)
})
public class Cookbook extends BaseEntity {

    /**
     * 菜谱名称
     */
    @Column(name = "name", columnDefinition = "varchar(255) COMMENT '菜谱名称'")
    private String name;

    /**
     * 工艺
     */
    @Column(name = "craft", columnDefinition = "varchar(50) COMMENT '工艺'")
    private String craft;

    /**
     * 口味
     */
    @Column(name = "taste", columnDefinition = "varchar(50) COMMENT '口味'")
    private String taste;

    /**
     * 耗时
     */
    @Column(name = "time_consuming", columnDefinition = "varchar(255) COMMENT '耗时'")
    private String timeConsuming;

    /**
     * 难度
     */
    @Column(name = "difficulty", columnDefinition = "varchar(50) COMMENT '难度'")
    private String difficulty;

    /**
     * 菜谱分类（数组字符串）
     */
    @Column(name = "category", columnDefinition = "varchar(2048) COMMENT '菜谱分类（数组字符串）'")
    private String category;

    /**
     * 备注
     */
    @Column(name = "remark", columnDefinition = "varchar(255) COMMENT '备注'")
    private String remark;

}
